package com.itheima.sc.pojo.pms;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.itheima.sc.pojo.cms.PrefrenceAreaProductRelation;
import com.itheima.sc.pojo.cms.SubjectProductRelation;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@TableName("pms_product")
public class Product implements Serializable {

   private Long id;
   private Long brandId;
   private Long productCategoryId;
   private Long feightTemplateId;
   private Long productAttributeCategoryId;
   private String name;
   private String pic;
   private String productSn;
   private Integer deleteStatus;
   private Integer publishStatus;
   private Integer newStatus;
   private Integer recommandStatus;
   private Integer verifyStatus;
   private Integer sort;
   private Integer sale;
   private BigDecimal price;
   private BigDecimal promotionPrice;
   private Integer giftGrowth;
   private Integer giftPoint;
   private Integer usePointLimit;
   private String subTitle;
   private String description;
   private BigDecimal originalPrice;
   private Integer stock;
   private Integer lowStock;
   private String unit;
   private BigDecimal weight;
   private Integer previewStatus;
   private String serviceIds;
   private String keywords;
   private String note;
   private String albumPics;
   private String detailTitle;
   private String detailDesc;
   private String detailHtml;
   private String detailMobileHtml;
   private Date promotionStartTime;
   private Date promotionEndTime;
   private Integer promotionPerLimit;
   private Integer promotionType;
   private String brandName;
   private String productCategoryName;

   //维护表格
   @TableField(exist = false)
   List<MemberPrice> memberPriceList;
   @TableField(exist = false)
   List<PrefrenceAreaProductRelation> prefrenceAreaProductRelationList;
   @TableField(exist = false)
   List<ProductAttributeValue> productAttributeValueList;
   @TableField(exist = false)
   List<ProductFullReduction> productFullReductionList;
   @TableField(exist = false)
   List<ProductLadder> productLadderList;
   @TableField(exist = false)
   List<SkuStock> skuStockList;
   @TableField(exist = false)
   List<SubjectProductRelation> subjectProductRelationList;


}
